global save save

if "`c(username)'"=="marco"  {
global dropbox "/Users/${username}/Dropbox"
global master_file_path "${dropbox}/Engel_GFT/replication_files"
global stataloc "C:\Program Files\Stata17\StataMP-64.exe"
global intermediate "$master_file_path/data/intermediate_data"
global input "$master_file_path/data/source_data"
cd "$input"
}

else if "`c(username)'"=="YOUR NAME"  {
global dropbox "C:/Users/SET USERNAME HERE/Dropbox"
}

*concord items
use "$intermediate/R55/consumption_items_55.dta",clear
merge m:1 Srl_no_of_item using  "$input/R55/55to43codes.dta"
keep if _merge==3
drop _merge

*concord geographical variables
merge m:1 state55 using "$input/R55/state55to43codes.dta"
drop _merge

*merge in region codes concorded:
merge m:1 state55 region55 using "$input/R55/region55to43codes.dta"
drop _merge

$save "$intermediate/R55/concorded_consumption_items55.dta", replace

